package com.ycj;

import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Log
//@Configurable
public class SchedulerTask {
    //    @Scheduled(fixedDelay = 5000)
    @Scheduled(cron = "*/5 * * * * *")
    public void doSomething() {
        // something that should run periodically
        log.info("doSomething---------");
    }


}
